<? if (Zend_Auth::getInstance()->hasIdentity()): ?>
    <p> Сиз сайттасыз </p>
    <?= $this->role; ?>
<? else :?>
<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle()->setSeparator(' - ');
$this->headTitle('Проверка');
?>
<?= $this->doctype(); ?>
<html>
<head>
    <?= $this->headTitle(); ?>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">

<link rel="shortcut icon" type="image/x-icon" href="<?= $this->baseUrl();?>/images/favicon.ico">
<!--Stylesheets-->
    <?= $this->headMeta(); ?>
    <?= $this->headTitle(); ?>
    <? $this->headLink()->appendStylesheet($this->baseUrl().'/styles/main.css'); ?>
    <? $this->headLink()->appendStylesheet($this->baseUrl().'/styles/reset.css'); ?>
    <?= $this->headLink()->appendStylesheet($this->baseUrl().'/styles/typography.css'); ?>

</head>


<body id="login_container">

<!--Dreamworks Container-->
<div id="dreamworks_container">

    <div id="login">
        <img style="float: left;" src="<?= $this->baseUrl();?>/images/logo.png" />
        <a style="float: right;" href="<?= $this->url(array('controller' => 'index', 'action' => 'index'),"", true);?>"> <span class="iconsweet">0</span> </a>
         <br clear="all" />
        <form method="POST">
        	<div class="input_box"> 
                    <span class="iconsweet">a</span>
                    <?= $this->form->login; ?>
                </div>
            <div class="input_box"> 
                <span class="iconsweet">y</span>
                <?= $this->form->password;?>
            </div>
            <div>
                <span style="float:left;"> 
                    <a class="forgot_password" href="#">Сыр сөздүү унуттунузбу?</a> <br />         
                    <a class="forgot_password" href="<?=$this->url(array(
                        'controller'    => 'users',
                        'action'        => 'registration'
                        ));?>"> Каттоо</a>
                </span>

                <span style="float:right;">
                    <?= $this->form->submit; ?>
                </span>
                <br clear="All"/>
            </div>
        </form>
    </div>
</body>
</html>
<? endif; ?>